package com.peas.platform.module.icims.base.auth.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

// 用户角色
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_user_role`")
public class UserRolePo extends BasePo {

    //用户表ID
    //外键
    @NotNull(message = "用户表ID不能为空")
    @TableField(value = "`user_id`", jdbcType = JdbcType.BIGINT)
    private Long userId;

    //角色ID
    //外键
    @NotNull(message = "角色ID不能为空")
    @TableField(value = "`role_id`", jdbcType = JdbcType.BIGINT)
    private Long roleId;

}
